# Plugins and test fixtures for CompilerGym.
#
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
load("@rules_python//python:defs.bzl", "py_library")

package(default_visibility = ["//visibility:public"])

py_library(
    name = "gcc",
    testonly = 1,
    srcs = ["gcc.py"],
    deps = [
        ":common",
        "//compiler_gym/envs/gcc",
    ],
)

py_library(
    name = "llvm",
    testonly = 1,
    srcs = ["llvm.py"],
    data = [
        "//compiler_gym/third_party/cbench:benchmarks_list",
    ],
    deps = [
        "//compiler_gym/envs/llvm",
        "//compiler_gym/third_party/llvm",
        "//compiler_gym/util",
    ],
)

py_library(
    name = "common",
    testonly = 1,
    srcs = ["common.py"],
    deps = [
        "//compiler_gym/util",
    ],
)

py_library(
    name = "random_util",
    testonly = 1,
    srcs = ["random_util.py"],
    deps = [
        "//compiler_gym",
    ],
)
